

t = (1, 2, 3, 4, 5, 6, 7, 8)

# 列表当中的所有偶数移除掉
lst = list(t)
n = 0
while n < len(lst):
    if lst[n] % 2 == 0:
        lst.pop(n)
        continue
    n+=1

t = tuple(lst)
print(t)
